package br.com.diego.system.entity;

import br.com.diego.system.DiegoRevisionListener;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.envers.RevisionEntity;
import org.hibernate.envers.RevisionNumber;
import org.hibernate.envers.RevisionTimestamp;

@Entity
@RevisionEntity(DiegoRevisionListener.class)
public class DiegoRevisionEntity implements Serializable {
    
    @Id
    @GeneratedValue
    @RevisionNumber
    private Long id;
    
    @RevisionTimestamp
    private Long timestamp;

    @Column(length = 15)
    private String username;

    public Long getId() {
        return id;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    
}
